package com.coldfusiondocs.delegate
{
    import mx.rpc.AsyncToken;
    import mx.rpc.http.mxml.HTTPService;
    

    public class DataDelegate implements IDataDelegate
    {
    	[Inject(source="adobeCFMLService")]
    	public var adobeCFMLService:HTTPService;
    	
      	[Inject(source="railoCFMLService")]
    	public var railoCFMLService:HTTPService;  	
        
        // CONSTRUCTOR
        public function DataDelegate()
        {
            super();
        }
        
        // PUBLIC METHODS
        public function loadAdobeCFML():AsyncToken
        {    
        	return this.adobeCFMLService.send();
        }
        
        public function loadRailoCFML():AsyncToken
        {    
            return this.railoCFMLService.send();
        }    
        
    
    }
}